<div class="modal-header">
    <h3 class="modal-title">添加学生</h3>
</div>
<div class="modal-body">
    <div class="row">
	    <div class="col-lg-12 ">	      
	        <form class="bs-example form-horizontal">
	            <div class="form-group">
	              <label class="col-lg-2 control-label">寝室长</label>
	              <div class="col-lg-3">
	                    <input type="text" class="form-control" ng-model="oo.personnel_number" placeholder="学号" ng-change="getpersoninfo()" data-placement="top" title="oo.info">
	                    <input type="hidden" ng-model="oo.pid">
	              </div>
	              <div class="col-lg-3">
	                    <input type="text" class="form-control" ng-model="oo.name" placeholder="姓名" readonly="">
	              </div>
	              <div class="col-lg-3">
	                    <input type="text" class="form-control" ng-model="oo.phone" placeholder="联系方式" readonly="">
	              </div>
	            </div>	            
	            
	            <div class="form-group">
	                <label class="col-lg-2 control-label">寝室成员</label>
	                <div class="col-lg-3">
	                    <button class="btn btn-xs btn-info form-control" ng-click="Fn.add()">点击添加寝室成员</button>	                
	                </div>	         
	            </div>

	            <div class="form-group" ng-repeat="(key,inputitem) in inputitems track by $index">
	                <label class="col-lg-2 control-label"></label>
	                <div class="col-lg-3" >
	                    <input type="text" class="form-control" placeholder="学号" ng-model="inputitems[key].personnel_number" ng-change="getResult($index)" />
		            </div>
		            <div class="col-lg-3">
		                <input type="text" class="form-control" ng-model="inputitems[key].name" readonly="" placeholder="姓名" >		                
		            </div>
		            <div class="col-lg-3">
		                <input type="text" class="form-control" ng-model="inputitems[key].phone" readonly="" placeholder="联系方式">               
		            </div>
		            <div class="col-lg-1">
		            	<button ng-click="Fn.del(key)" class="btn btn-danger btn-sm">删除</button>
		            </div>
	            </div>

	          </div>


	           </form>
	        </div>
	    </div>
	</div>
</div>
<div class="modal-footer">                  
    <button class="btn btn-default" ng-click="cancel()">取消</button>
    <button class="btn btn-success" ng-click="ok()">确定</button>
</div>